package com.mywork.activity;

import android.support.v4.app.Fragment;

import com.ciko.code.base.BaseLabelActivity;
import com.ciko.code.fragment.MyFieldWorkFragment;
import com.ciko.code.fragment.MyReceiveFieldWorkFragment;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by LEECO on 2016/6/2.
 */
public class AttendanceRecordActivity2 extends BaseLabelActivity {

    private MyFieldWorkFragment myFieldWorkFragment;
    private MyReceiveFieldWorkFragment myReceiveFieldWorkFragment;


    private List<Fragment> fragmentList =null;

    @Override
    protected void initLayoutDate() {
        fragmentList = new ArrayList<>();
        myFieldWorkFragment =new MyFieldWorkFragment("我的外勤");
        myReceiveFieldWorkFragment = new MyReceiveFieldWorkFragment("收到的外勤");
        fragmentList.add(myFieldWorkFragment);
        fragmentList.add(myReceiveFieldWorkFragment);

        String[] fTitle = {"我的外勤", "收到的外勤"};
        setFragmentList(fragmentList, fTitle);
    }

    @Override
    protected void initTopBar() {
        setTitle("签到记录");
        enableNavLeftImg();
    }

    @Override
    protected void initAdapter() {

    }

    @Override
    protected void initListener() {

    }
}
